﻿<%@ Page Title="" Language="C#" MasterPageFile="~/ActivitySystemDefaultPage.Master" AutoEventWireup="true" CodeBehind="PageList.aspx.cs" Inherits="ActivitySystem.Web.Admin.PageList" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <asp:ScriptManager ID="scriptManager" runat="server" />
    <asp:UpdatePanel ID="updatePanel" runat="server">
        <ContentTemplate>
            <div class="div_search_result" style="margin-top: 5px;">
                <asp:GridView ID="gvPages" runat="server" AutoGenerateColumns="False" DataKeyNames="Id" Width="100%">
                    <Columns>
                        <asp:TemplateField HeaderText="Page Name">
                            <ItemTemplate>
                                <a href='PageEdit.aspx?PageId=<%# Eval("Id")%>&Mode=Read' target="_blank">
                                    <%# Eval("PageName")%></a>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:BoundField DataField="Url" HeaderText="Url" />
                        <asp:BoundField DataField="Category" HeaderText="Category" />
                        <asp:BoundField DataField="NavigationType" HeaderText="Navigation Type" />
                        <asp:BoundField DataField="NavigationOrder" HeaderText="Navigation Order" />
                        <asp:TemplateField HeaderText="Status">
                            <ItemTemplate>
                                <%# Eval("IsActive").ToString() =="True" ? "Enable" : "Disable" %>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="Edit">
                            <ItemTemplate>
                                <a href='PageEdit.aspx?PageId=<%# Eval("Id")%>&Mode=Update' target="_blank">Edit</a>
                            </ItemTemplate>
                        </asp:TemplateField>
                    </Columns>
                    <HeaderStyle BackColor="#546E96" ForeColor="#DFDFDF" />
                </asp:GridView>
            </div>
        </ContentTemplate>
    </asp:UpdatePanel>
</asp:Content>
